export const whiteList = [
  {
    name: 'login',
    path: '/login',
    menuRender: false,
    headerRender: false,
    hideInMenu: true,
    component: './User/Login',
  },
];
export default [
  {
    path: '/',
    redirect: '/dashboard',
  },
  ...whiteList,
  {
    name: '工作台',
    path: '/dashboard',
    component: './Dashboard',
  },
  {
    //  name: 'basicInfo',
    name: '基础资料',
    path: '/basic-info',
    routes: [
      {
        path: '/basic-info',
        redirect: '/basic-info/fba',
      },
      {
        path: '/basic-info/destination',
        // name: 'fba',
        name: '仓库地址',
        component: './BasicInfo/Destinaion',
      },
      {
        path: '/basic-info/service',
        // name: 'carrier',
        name: '服务商',
        component: './BasicInfo/Service',
      },
      {
        path: '/basic-info/warehouse',
        // name: 'warehouse',
        name: '国内仓库',
        component: './BasicInfo/Warehouse',
      },
      {
        path: '/basic-info/weight-ratio',
        // name: 'warehouse',
        name: '货重比',
        component: './BasicInfo/WeightRatio',
      },
      {
        path: '/basic-info/data-dict',
        // name: 'dataDict',
        name: '数据字典',
        component: './BasicInfo/DataDict',
      },
    ],
  },
  {
    // name: 'productManage',
    name: '产品管理',
    path: '/product-manage',
    routes: [
      {
        path: '/product-manage',
        redirect: '/product-manage/line',
      },
      {
        path: '/product-manage/line',
        // name: 'line',
        name: '线路',
        component: './ProductManage/Line',
      },
      {
        path: '/product-manage/line-batch',
        // name: 'line',
        name: '船期',
        component: './ProductManage/LineBatch',
      },
      {
        path: '/product-manage/line-quote',
        // name: 'line',
        name: '报价表',
        component: './ProductManage/LineQuote',
      },
      {
        path: '/product-manage/tag-manage',
        // name: 'TagManage',
        name: '标签管理',
        component: './ProductManage/TagManage',
      },
    ],
  },
  {
    // name: 'productManage',
    name: '客户管理',
    path: '/company-manage',
    routes: [
      {
        path: '/company-manage',
        redirect: '/company-manage/company-list',
      },
      {
        path: '/company-manage/clue-pool',
        // name: 'line',
        name: '公海线索',
        component: './CompanyManage/CluePool',
      },
      {
        path: '/company-manage/company-list',
        // name: 'line',
        name: '客户列表',
        component: './CompanyManage/CompanyList',
      },
      {
        path: '/company-manage/company-deatil',
        // name: 'line',
        name: '客户详情',
        hideInMenu: true,
        component: './CompanyManage/CompanyDetail',
      },
      {
        path: '/company-manage/company-bill',
        // name: 'line',
        name: '账单确认',
        component: './CompanyManage/CompanyBill',
      },
    ],
  },
  {
    // name: 'productManage',
    name: '订单管理',
    path: '/order-manage',
    routes: [
      {
        path: '/order-manage',
        redirect: '/order-manage/pre-order',
      },
      {
        path: '/order-manage/pre-order',
        // name: 'line',
        name: '意向单',
        component: './OrderManage/PreOrder',
      },
      {
        path: '/order-manage/order-list',
        // name: 'line',
        name: '订单列表',
        component: './OrderManage/OrderList',
      },
      {
        path: '/order-manage/order-detail',
        // name: 'line',
        name: '订单详情',
        hideInMenu: true,
        component: './OrderManage/OrderDetail',
      },
      {
        path: '/order-manage/order-create',
        // name: 'line',
        name: '订单创建',
        hideInMenu: true,
        component: './OrderManage/OrderCreate',
      },
      {
        path: '/order-manage/cabinet-detail',
        // name: 'line',
        name: '柜子详情',
        hideInMenu: true,
        component: './OrderManage/CabinetDetail',
      },
      {
        path: '/order-manage/cabinet-track',
        // name: 'line',
        name: '柜子轨迹',
        component: './OrderManage/CabinetTrack',
      },
      {
        path: '/order-manage/order-verify',
        // name: 'line',
        name: '订单审核',
        component: './OrderManage/OrderVerify',
      },
      {
        path: '/order-manage/order-verify-detail',
        // name: 'line',
        name: '订单审核详情',
        hideInMenu: true,
        component: './OrderManage/OrderVerifyDetail',
      },
      {
        path: '/order-manage/warehouse-entry-verify',
        // name: 'line',
        name: '批量导出数据确认',
        hideInMenu: true,
        component: './OrderManage/WarehouseEntryVerify',
      },
    ],
  },
  {
    // name: 'productManage',
    name: '财务管理',
    path: '/finance-manage',
    routes: [
      {
        path: '/finance-manage',
        redirect: '/finance-manage/receivable-bill',
      },
      {
        path: '/finance-manage/account-funds',
        name: '账户资金',
        component: './FinanceManage/AccountFunds',
      },
      {
        path: '/finance-manage/collection-records',
        name: '收款记录',
        component: './FinanceManage/CollectionRecords',
      },
      {
        path: '/finance-manage/receivable-bill',
        name: '应收账单',
        component: './FinanceManage/ReceivableBill',
      },
      {
        path: '/finance-manage/receivable-bill-detail',
        name: '应收账单详情',
        component: './FinanceManage/ReceivableBillDetail',
      },
    ],
  },
  {
    // name: 'productManage',
    name: '运营管理',
    path: '/business-manage',
    routes: [
      {
        path: '/business-manage',
        redirect: '/business-manage/coupon-list',
      },
      {
        path: '/business-manage/activity-manage',
        // name: 'line',
        name: '活动管理',
        component: './BusinessManage/ActivityManage',
      },
      {
        path: '/business-manage/coupon-list',
        // name: 'line',
        name: '优惠券',
        component: './BusinessManage/CouponList',
      },
      {
        path: '/business-manage/ad-position-manage',
        // name: 'line',
        name: '广告位',
        component: './BusinessManage/AdPositionManage',
      },
      {
        path: '/business-manage/ad-manage',
        // name: 'line',
        name: '广告',
        component: './BusinessManage/AdManage',
      },
      // {
      //   path: '/business-manage/coupon-allot',
      //   // name: 'line',
      //   name: '优惠券发放',
      //   component: './BusinessManage/CouponAllot',
      // },
    ],
  },
  {
    name: '用户中心',
    path: '/system-manage',
    routes: [
      {
        path: '/system-manage',
        redirect: '/system-manage/user-manage',
      },
      {
        path: '/system-manage/user-manage',
        // name: 'line',
        name: '用户管理',
        component: './SystemManage/UserManage',
      },
      {
        path: '/system-manage/menu-manage',
        // name: 'line',
        name: '菜单管理',
        component: './SystemManage/MenuManage',
      },
      {
        path: '/system-manage/role-manage',
        // name: 'line',
        name: '角色管理',
        component: './SystemManage/RoleManage',
      },
    ],
  },
  {
    path: '/404',
    name: '404',
    hideInMenu: true,
    component: './404.tsx',
  },
  {
    path: '/*',
    name: '404',
    hideInMenu: true,
    component: './404.tsx',
  },
];
